package com.atguigu.gulimall.search.vo;

import lombok.Data;

import java.util.List;

/**
 * 封装页面所有可能传递过来的查询条件
 *
 * catalog3Id=225&keyword=小米&sort=saleCount_asc&hasStock=0/1
 */
@Data
public class SearchParam {

    private String keyword; //页面传递过来的全文匹配关键字  v
    private Integer catalog3Id; //三级分类id   v
    /**
     * sort=saleCount_asc/desc
     * sort=skuPrice_asc/desc
     * sort=hotScort_asc/desc
     */
    private String sort; //排序条件  v
    /**
     * 好多过滤条件
     * hastock(是否有货) 、skuPrice区间、brandId、catalog3Id、attrs
     * hasStock=0/1
     * skuPrice=1_500
     */
    private Integer hasStock; //是否显示有货  v
    private String skuPrice; //价格区间查询
    private List<Long> brandId; //按照品牌查询 可多选  v
    private List<String> attrs;  //按照属性进行筛选   v
    private Integer pageNum=1; //页码

    private String _queryString; // 查询字符串
}
